package com.beta.cust.bind.datasync.constant;

/**
 * @Description TODO
 * @Author lixin
 **/
public interface RedisConstant {
    String BASE_KEY = "cus-bind-datasync:";

    String ACCESS_TOKEN_KEY = BASE_KEY + "access_token:corpId:%s:secretKey:%s";

    String CORP_ACCESS_TOKEN_KEY = "user-auth-center:access_token:corpId:%s:agentId:%s";

    String SYNC_DEPTS_EMPS_LOCK_KEY = BASE_KEY + "sync_deps_emps:%s";

    String SYNC_CRM_DETAIL_LOCK_KEY = BASE_KEY + "crm_detail_lock";

    String SYNC_CALL_BACK_LOCK_KEY = BASE_KEY + "sync_call_back:%s:%s:%s";


    String AUTH_CORP_KEY = BASE_KEY + "auth_corp:id:%s";

    /**
     * 保证只有一个线程去获取企业微信access_token，锁的时长是3秒
     */
    Long ACCESS_TOKEN_LOCK_TIME = 3L * 1000;

    Long WAIT_TIME_ZERO = 0L;

    Long CALL_BACK_WAIT_TIME = 3L * 1000;


}
